package com.colin.library.base;

import android.app.Application;
import android.content.Context;

/**
 * Created by Administrator on 2017/6/13.
 */

public class BaseApplication extends Application {
    public static Context sContext;

    public static Context getContext() {
        return sContext.getApplicationContext();
    }

    @Override
    public void onCreate() {
        sContext = this;
        super.onCreate();
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
        sContext = null;
    }
}
